package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Schema(name ="保单")
public class MemberInsure   extends Entity {
    @Schema(description = "保单id")
    private String id;
    @Schema(description = "订单id")
    private String memberOrderId;
    @Schema(description = "保险金额")
    private BigDecimal money;
    @Schema(description = "投保人姓名")
    private String insureName;
    @Schema(description = "保单状态")
    private Integer state;
    @Schema(description = "投保人身份证")
    private String insureIdcard;
    @Schema(description = "投保人性别")
    private String insureSex;
    @Schema(description = "投保人年龄")
    private String insureAge;
    @Schema(description = "被保人姓名")
    private String insuredName;
    @Schema(description = "被保人身份证")
    private String insuredIdcard;
    @Schema(description = "被保人性别")
    private String insuredSex;
    @Schema(description = "被保人年龄")
    private String insuredAge;
    @Schema(description = "被保人电话")
    private String insuredTelphone;
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    @Schema(description = "结束时间")
    private String times;
    @Schema(description = "保险名称")
    private String insuranceName;
    @Schema(description = "承保人")
    private String insurer;
    @Schema(description = "骑行人")
    private String memberId;
    @Schema(description = "保险id")
    private Integer insureId;


}